package com.cssl.gulimall.member.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cssl.gulimall.member.dao.MemberReceiveAddressDao;
import com.cssl.gulimall.member.entity.MemberReceiveAddressEntity;
import com.cssl.gulimall.member.service.MemberReceiveAddressService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberReceiveAddressServiceImpl extends ServiceImpl<MemberReceiveAddressDao,MemberReceiveAddressEntity> implements MemberReceiveAddressService {
    @Override
    public List<MemberReceiveAddressEntity> getAddress(Long memberId) {
        return baseMapper.selectList(new QueryWrapper<MemberReceiveAddressEntity>().eq("member_id",memberId));
    }
}
